package com.crud.service;
import com.crud.dao.IUserDao;
import com.crud.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class UserService implements IUserService {

    @Resource
    private IUserDao dao;

    @Override
    public List<User> getAllUsers() {
        return dao.selectAll();
    }
}

